Method and apparatus for adding icon to interface of android system, and mobile terminal

ABSTRACT

A method for adding an icon to an interface of an Android system, where the Android system has N interfaces, includes: a. obtaining add command information; b. obtaining, according to the add command information, space information of an icon to be added; c. obtaining remaining space information of an M th  interface according to the add command information; d. judging whether the space information of the icon to be added is greater than the remaining space information of the M th  interface; if yes, executing step e; if no, executing step f; e. judging whether the M th  interface is a last interface to be judged; if yes, executing step g; if no, assigning M+1 to M and returning to step c; f. adding the icon to the interface; and g. establishing another interface, and adding the icon to the newly established interface; where M and N are natural numbers, and 1≤M≤N.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No.15/154,154, filed on May 13, 2016, which is a continuation of U.S.patent application Ser. No. 13/662,463, filed on Oct. 27, 2012 (now U.S.Pat. No. 9,372,594), which is a continuation of InternationalApplication No. PCT/CN2011/073430, filed on Apr. 28, 2011, which claimspriority to Chinese Patent Application No. 201010166490.4, filed on Apr.28, 2010. All of the aforementioned patent applications are herebyincorporated by reference in their entireties.

TECHNICAL FIELD

The present disclosure relates to the field of communicationstechnologies, and in particular, to a method and an apparatus for addingan icon to an interface of an Android system, and a mobile terminal.

BACKGROUND

At present, taking a device installed with an Android system as arepresentative, more and more handheld touch-screen terminal devicesprovide large-space Home interfaces for users, and therefore, the usersare allowed to place, according to their habits and under a preconditionthat there is space on a current screen, icons of frequently usedfavorite programs, widgets, controls, folders and so on to the Homeinterfaces of the devices, resembling shortcuts on a computer desktop,which greatly facilitates searching for a particular application programby the users when functions of handheld devices become increasinglypowerful nowadays.

During a process of implementing embodiments of the present disclosure,the inventor finds that the prior art has the following technicalproblems: If there is no space for placement on the current screen, anicon cannot be added, and a user is required to manually release spacefor placement, which is inconvenient for the user to operate; inaddition, in the prior art, when an icon is to be added to the Homeinterface, it must be ensured that there are enough space on the currentscreen, so that the icon can be added; if there is no enough space, aseries of operations of selecting an icon to be added by the userpreviously are invalid, and need to be performed again. As a result, acapability of intelligent interaction between a mobile phone using anAndroid system and a user is greatly reduced.

SUMMARY

In view of the foregoing problems, an embodiment of the presentdisclosure provides a method for adding an icon to an interface of anAndroid system, where the Android system has N interfaces, and themethod includes:

a. obtaining add command information;

b. obtaining, according to the add command information, spaceinformation of an icon to be added;

c. obtaining remaining space information of an M^(th) interfaceaccording to the add command information;

d. judging whether the space information of the icon to be added isgreater than the remaining space information of the M^(th) interface; ifyes, executing step e; if no, executing step f;

e. judging whether the M^(th) interface is a last interface to bejudged; if yes, executing step g; if no, assigning M+1 to M andreturning to step c;

f. adding the icon to the interface, and the process ends; and

g. establishing another interface, adding the icon to the newlyestablished interface, and the process ends;

where, M and N are natural numbers, and 1≤M≤N.

Meanwhile, an embodiment of the present disclosure further provides anapparatus for adding an icon to an interface of an Android system, wherethe Android system has N interfaces, and the apparatus includes:

a first obtaining module, configured to obtain add command information;

a second obtaining module, configured to obtain, according to the addcommand information, space information of an icon to be added andremaining space information of an M^(th) interface;

a first judging module, configured to judge whether the spaceinformation of the icon to be added is greater than the remaining spaceinformation of the M^(th) interface;

a second judging module, configured to judge whether the M^(th)interface is a last interface to be judged; and

an adding module, configured to add the icon to remaining space of theM^(th) interface when the first judging module judges that the spaceinformation of the icon to be added is not greater than the remainingspace information of the M^(th) interface;

where, M and N are natural numbers, and 1≤M≤N.

In the embodiments of the present disclosure, whether to add the icon toa current interface is determined by judging whether the spaceinformation of the icon to be added is smaller than or equal toremaining space information of the current interface, thereby solving atechnical problem that a user is required to determine again and againwhether there is enough space before adding a icon in an Android deviceat present, and providing a friendly and human-centered operatingexperience for the user, so that a capability of intelligent interactionbetween a mobile phone using an Android system and a user is greatlyimproved.

BRIEF DESCRIPTION OF THE DRAWINGS

To illustrate the technical solutions in the embodiments of the presentdisclosure more clearly, accompanying drawings required for describingthe embodiments are briefly introduced in the following. Obviously, theaccompanying drawings in the following description are merely someembodiments of the present disclosure, and persons of ordinary skills inthe art may further obtain other drawings according to the accompanyingdrawings without creative efforts.

FIG. 1 is a flowchart of a method according to Embodiment 1 of thepresent disclosure;

FIG. 2 is a flowchart of a method according to Embodiment 2 of thepresent disclosure;

FIG. 3 is a schematic diagram of an apparatus according to Embodiment 3of the present disclosure;

FIG. 4 is another schematic diagram of the apparatus according toEmbodiment 3 of the present disclosure; and

FIG. 5 is another schematic diagram of the apparatus according toEmbodiment 3 of the present disclosure.

DETAILED DESCRIPTION OF THE EMBODIMENTS

The technical solutions in the embodiments of the present disclosure areclearly and completely described in the following with reference to theaccompanying drawings. Evidently, the embodiments to be described aremerely part of rather than all of the embodiments of the presentdisclosure. All other embodiments obtained by persons of ordinary skillin the art based on the embodiments of the present disclosure withoutcreative efforts shall fall within the protection scope of the presentdisclosure.

Embodiment 1

Taking a mobile phone using an Android system with 2 interfaces as anexample, Embodiment 1 of the present disclosure provides a method foradding an icon to an interface of an Android system. Referring to FIG.1, the method specifically includes:

Step 101: Obtain add command information, where the add commandinformation is command information generated by a mobile terminal systemdue to a relevant operation of a user when the user needs to move anicon of a certain application program. For example, in a mobile terminal(such as a PC, PDA, and mobile phone) installed with an Android system,when the user presses an icon of a photographing application program,the mobile terminal can obtain the add command information, anddetermine that the user needs to perform a corresponding add operationon the icon.

Step 102: Obtain, according to the add command information, spaceinformation of an icon to be added and remaining space information of acurrent interface.

The icon mentioned in the embodiment of the present disclosurespecifically refers to icons that are capable of representing visibilityor touchability of various application programs, such as a shortcut,widget, folder, sticker, and bookmark. After obtaining the add commandinformation, the mobile terminal obtains, according to the add commandinformation, the space information of the icon to be added. The spaceinformation may be two-dimensional plane information, and may also bethree-dimensional information. For example, the mobile terminal mayobtain an icon with space information being 2×2 square units (such ascentimeters). Meanwhile, the mobile terminal may obtain the remainingspace information of the current interface. Because the icon to be addedneeds to be added to the current interface, the mobile terminal needs todetermine how much space is left on the current interface. For example,the mobile terminal determines the remaining space information through agrid parameter established by the system itself and information of spacethat has been occupied by application program icons.

Step 103: Judge whether the space information of the icon to be added isgreater than the remaining space information of the current interface;if yes, execute step 104; if no, execute step 105.

For example, the space information of the icon to be added is 2×2 squareunits, and the remaining space information is 3×2 square units; thissquare unit takes a horizontal axis—X axis and a longitudinal axis—Yaxis of a Cartesian coordinate system as a reference system. The mobileterminal judges that 2<3 and 2≤2, which indicates that the spaceinformation of the icon to be added is smaller than or equal to theremaining space information of the current interface. Therefore, themobile terminal adds the icon to the current interface. Certainly, thespace information mentioned in the example is plane information; in theembodiment of the present disclosure, the space information of the iconand the remaining space information may also be three-dimensional spaceinformation. For example, the space information of the icon to be addedis 2×2×2 cubic units, and the remaining space information is 3×2×4 cubicunits; the mobile terminal judges that 2<3, 2≤2, and 2<4, whichindicates that the space information of the icon to be added is smallerthan or equal to the remaining space information of the currentinterface. Therefore, the mobile terminal adds the icon to the currentinterface; otherwise, the mobile terminal searches for a next interface,and judges whether the next interface has enough remaining spaceinformation for adding the icon.

Step 104: Switch to a second interface, obtain remaining spaceinformation of the second interface, and execute step 106.

Step 105: Add the icon to the current interface, and the process ends.

Step 106: Judge whether the space information of the icon to be added isgreater than the remaining space information of the second interface; ifyes, execute step 107; if no, execute step 105.

Step 107: Establish a third interface, add the icon to the thirdinterface, and the process ends.

In Embodiment 1 of the present disclosure, whether to add the icon tothe current interface is determined by judging whether the spaceinformation of the icon to be added is smaller than or equal toremaining space information of the current interface, thereby solving atechnical problem that a user is required to determine again and againwhether there is enough space before adding a icon in an Android deviceat present, greatly improving a capability of intelligent interactionbetween the mobile phone using the Android system and the user, andproviding a friendly and human-centered operating experience for theuser, so that the user has a good experience from visual and ease of useperspectives during an operation.

Embodiment 2

In Embodiment 1, the mobile terminal using the Android system with 2interfaces is taken as an example for illustration; Embodiment 2 of thepresent disclosure is described specifically below by using an Androidsystem with N interfaces. Referring to FIG. 2, Embodiment 2 of thepresent disclosure provides a method for adding an icon to an interfaceof an Android system, and the method specifically includes:

Step 201: Obtain add command information, where the add commandinformation is command information generated by a mobile terminal systemdue to a relevant operation of a user when the user needs to move anicon of a certain application program. For example, in a mobile terminal(such as a PC, PDA, and mobile phone) installed with an Android system,when the user presses an icon of a photographing application program,the mobile terminal can obtain the add command information, anddetermine that the user needs to perform a corresponding add operationon the icon.

Step 202: Obtain, according to the add command information, spaceinformation of an icon to be added.

Step 203: Obtain remaining space information of an M^(th) interfaceaccording to the add command information.

The icon mentioned in the embodiment of the present disclosurespecifically refers to icons that are capable of representing visibilityor touchability of various application programs, such as a shortcut,widget, folder, sticker, and bookmark. After obtaining the add commandinformation, the mobile terminal obtains, according to the add commandinformation, the space information of the icon to be added. The spaceinformation may be two-dimensional plane information, and may also bethree-dimensional information. For example, the mobile terminal mayobtain an icon with space information being 2×2 square units (such ascentimeters). Meanwhile, the mobile terminal may obtain remaining spaceinformation of a current interface. Because the icon to be added needsto be added to the current interface, the mobile terminal needs todetermine how much space is left on the current interface. For example,the mobile terminal determines the remaining space information through agrid parameter established by the system itself and information of spacethat has been occupied by application program icons.

Step 204: Judge whether the space information of the icon to be added isgreater than the remaining space information of the M^(th) interface; ifyes, execute step 205; if no, execute step 206.

Step 205: Judge whether the M^(th) interface is a last interface to bejudged; if yes, execute step 207; if no, assign M+1 to M, and return tostep 203.

Step 206: Add the icon to the interface, and the process ends.

Step 207: Establish another interface, add the icon to the newlyestablished interface, and the process ends.

M and N are natural numbers, and 1≤M≤N.

The following takes a mobile terminal using an Android system with 3interfaces as an example to describe the foregoing process in detail. Aterminal user performs an operation on a corresponding icon; the mobileterminal obtains add command information, and obtains, according to thecommand information, space information of the icon and remaining spaceinformation of a current interface (which may be called a firstinterface). Then, judge whether the space information of the icon isgreater than the remaining space information of the current firstinterface; if no, add the icon to the current first interface directly;if yes, judge whether the current first interface is a last interface tobe judged. An interface to be judged is obtained through a calculationaccording to interfaces of the system and an interface that has beenjudged; in the embodiment, because in the judging step, only the firstinterface is judged, and there are 2 interfaces which are not judgedyet, the current first interface is not the last interface to be judged.Therefore, judge a second interface, which is judging whether the spaceinformation of the icon is greater than remaining space information ofthe second interface; if no, add the icon to the second interfacedirectly; if yes, judge whether the second interface is the lastinterface to be judged. In the embodiment, because in the judging step,only the first interface and the second interface are judged, and thereis a third interface which is not judged yet, the second interface isnot the last interface to be judged. Therefore, judge the thirdinterface, which is judging whether the space information of the icon isgreater than remaining space information of the third interface; if no,add the icon to the third interface directly; if yes, judge whether thethird interface is the last interface to be judged. In the embodiment ofthe present disclosure, the third interface is the last interface to bejudged, which indicates that none of the three interfaces of the systemhas enough remaining space information for adding and placing the icon.In this case, the system establishes a new interface—which is called afourth interface. The fourth interface is newly established, and noapplication program icon is placed on the interface. Therefore,remaining space information of the interface is whole space of theinterface, and the icon may be added to the fourth interface. It may beunderstandable that, in the embodiment of the present disclosure, thenumber of interfaces possessed by the mobile terminal using the Androidsystem is not limited to 3, and may also be multiple, and an operationof adding an application program icon to an interface may also beperformed according to the foregoing method process.

Optionally, after step 206, the method further includes:

Step 2061: After the icon is added, sort all icons on the currentinterface according to use frequency of the icons. There may be icons ofmultiple application programs placed on an interface to which the iconis added. The user sorts and then places these icons and the newly addedicon, so that an icon of a most frequently used application program maybe placed at a most eye-catching or top position, which facilitates anoperation of the user.

In the embodiment of the present disclosure, whether to add the icon tothe current interface is determined by judging whether the spaceinformation of the icon to be added is smaller than or equal toremaining space information of the current interface, thereby solving atechnical problem that a user is required to determine again and againwhether there is enough space before adding a icon in an Android deviceat present, greatly improving a capability of intelligent interactionbetween a mobile phone using an Android system and the user, andproviding a friendly and human-centered operating experience for theuser, so that the user has a good experience from visual and ease of useperspectives during an operation.

Embodiment 3

Embodiment 3 of the present disclosure provides an apparatus for addingan icon to an interface of an Android system, where the Android systemhas N interfaces; referring to FIG. 3, the apparatus includes:

a first obtaining module 301, configured to obtain add commandinformation;

a second obtaining module 302, configured to obtain, according to theadd command information, space information of an icon to be added andremaining space information of an M^(th) interface;

a first judging module 303, configured to judge whether the spaceinformation of the icon to be added is greater than the remaining spaceinformation of the M^(th) interface;

a second judging module 304, configured to judge whether the M^(th)interface is a last interface to be judged; and

an adding module 305, configured to add the icon to remaining space ofthe M^(th) interface when the first judging module judges that the spaceinformation of the icon to be added is not greater than the remainingspace information of the M^(th) interface;

where, M and N are natural numbers, and 1≤M≤N.

Further, referring to FIG. 4, the apparatus may further include:

an establishing module 306, configured to establish another interfacewhen the second judging module judges that the M^(th) interface is thelast interface to be judged;

where, the adding module 305 is further configured to add the icon tothe newly established interface.

Further, referring to FIG. 5, the apparatus may further include:

a sorting module 307, configured to sort all icons on a currentinterface according to use frequency of the icons and an interface towhich the adding module 305 adds the icon. There may be icons ofmultiple application programs placed on the interface to which the iconis added. A user sorts and then places these icons and the newly addedicon, so that an icon of a most frequently used application program maybe placed at a most eye-catching or top position, which facilitates anoperation of the user.

In the embodiment of the present disclosure, whether to add the icon tothe current interface is determined by judging whether the spaceinformation of the icon to be added is smaller than or equal toremaining space information of the current interface, thereby solving atechnical problem that a user is required to determine again and againwhether there is enough space before adding a icon in an Android deviceat present, greatly improving a capability of intelligent interactionbetween a mobile phone using an Android system and the user, andproviding a friendly and human-centered operating experience for theuser, so that the user has a good experience from visual and ease of useperspectives during an operation.

Embodiment 4

Embodiment 4 of the present disclosure discloses a mobile terminal usingan Android system, where the mobile terminal includes a baseband chip, atouch screen, an antenna, and so on, and the mobile terminal may furtherinclude the apparatus for adding the icon to the interface in Embodiment3. Specifically, the mobile terminal may be a terminal device such as amobile phone using an Android system, a PDA (personal digitalassistant), a home information display (HID), a tablet, or a mobileInternet device (MID).

Persons of ordinary skill in the art should understand that all or partof the processes of the method according to the foregoing embodimentsmay be implemented by a computer program instructing relevant hardware.The program may be stored in a computer readable storage medium. Whenthe program is run, the processes of the method according to theforegoing embodiments may be performed. The storage medium may be amagnetic disk, an optical disk, a read-only memory (ROM), a randomaccess memory (RAM), and so on.

The foregoing is merely exemplary embodiments of the present disclosure,but is not intended to limit the present disclosure. Any modification,equivalent replacement, or improvement made without departing from thespirit and principle of the present disclosure shall fall within theprotection scope of the present disclosure.

What is claimed is:
 1. A method of adding an icon in a mobile terminalthat has a first homescreen, the method being performed by the mobileterminal and comprising: detecting a first press gesture on an icon fora first widget to add the icon for the first widget to the firsthomescreen, wherein a shortcut and a folder are displayed on the firsthomescreen; in response to detecting the first press gesture,determining whether the first homescreen has available space for placingthe icon for the first widget; and in response to determining that thefirst homescreen does not have available space for placing the icon forthe first widget, displaying the icon for the first widget on a secondhomescreen automatically created.
 2. The method according to claim 1,further comprising: determining remaining space of the first homescreenthrough a display grid parameter established by an operating system ofthe mobile terminal and space occupied by application program icons onthe first homescreen.
 3. The method according to claim 1, wherein: themobile terminal has a third homescreen next to the first homescreenbefore detecting the first press gesture; the third homescreen does nothave available space for placing the icon for the first widget; and thesecond homescreen is automatically created next to the third homescreen.4. The method according to claim 3, further comprising: in response todetecting the first press gesture, determining whether the thirdhomescreen has available space for placing the icon for the firstwidget; wherein the icon for the first widget is displayed on the secondhomescreen in response to determining that the first homescreen and thethird homescreen do not have available space for placing the icon forthe first widget.
 5. The method according to claim 4, furthercomprising: detecting a second press gesture on an icon for a secondwidget to add the icon for the second widget to the first homescreen; inresponse to detecting the second press gesture, determining whether thefirst homescreen has available space for placing the icon for the secondwidget; in response to determining that the first homescreen does nothave available space for placing the icon for the second widget,determining whether the third homescreen has available space for placingthe icon for the second widget; and in response to determining that thethird homescreen does have available space for placing the icon for thesecond widget, displaying the icon for the second widget on the thirdhomescreen.
 6. The method according to claim 3, further comprising:detecting a second press gesture on an icon for a second widget to addthe icon for the second widget to the first homescreen; and in responseto determining that the first homescreen does not have available spacefor placing the icon for the second widget and that the third homescreenhas available space for placing the icon for the second widget,displaying the icon for the second widget on the third homescreen. 7.The method according to claim 1, further comprising: detecting a secondpress gesture on an icon for a second widget to add the icon for thesecond widget to the first homescreen; in response to detecting thesecond press gesture, determining whether the first homescreen hasavailable space for placing the icon for the second widget; and inresponse to determining that the first homescreen does have availablespace for placing the icon for the second widget, displaying the iconfor the second widget on the first homescreen.
 8. A mobile terminalcomprising: a display screen; a memory storing instructions; and aprocessor configured to execute the instructions to cause the mobileterminal to perform operations of: detecting a first press gesture on anicon for a first widget to add the icon for the first widget to a firsthomescreen, wherein a shortcut and a folder are displayed on the firsthomescreen; in response to detecting the first press gesture,determining whether the first homescreen has available space for placingthe icon for the first widget; and in response to determining that thefirst homescreen does not have available space for placing the icon forthe first widget, displaying the icon for the first widget on a secondhomescreen automatically created.
 9. The mobile terminal according toclaim 8, wherein the operations further comprise: determining remainingspace of the first homescreen through a display grid parameterestablished by an operating system of the mobile terminal and spaceoccupied by application program icons on the first homescreen.
 10. Themobile terminal according to claim 8, wherein: the mobile terminal has athird homescreen next to the first homescreen before detecting the firstpress gesture; the third homescreen does not have available space forplacing the icon for the first widget; and the second homescreen isautomatically created next to the third homescreen.
 11. The mobileterminal according to claim 10, wherein the operations further comprise:in response to detecting the first press gesture, determining whetherthe third homescreen has available space for placing the icon for thefirst widget; wherein the icon for the first widget is displayed on thesecond homescreen in response to determining that the first homescreenand the third homescreen do not have available space for placing theicon for the first widget.
 12. The mobile terminal according to claim11, wherein the operations further comprise: detecting a second pressgesture on an icon for a second widget to add the icon for the secondwidget to the first homescreen; in response to detecting the secondpress gesture, determining whether the first homescreen has availablespace for placing the icon for the second widget; in response todetermining that the first homescreen does not have available space forplacing the icon for the second widget, determining whether the thirdhomescreen has available space for placing the icon for the secondwidget; and in response to determining that the third homescreen doeshave available space for placing the icon for the second widget,displaying the icon for the second widget on the third homescreen. 13.The mobile terminal according to claim 10, wherein the operationsfurther comprise: detecting a second press gesture on an icon for asecond widget to add the icon for the second widget to the firsthomescreen; and in response to determining that the first homescreendoes not have available space for placing the icon for the second widgetand that the third homescreen has available space for placing the iconfor the second widget, displaying the icon for the second widget on thethird homescreen.
 14. The mobile terminal according to claim 8, whereinthe operations further comprise: detecting a second press gesture on anicon for a second widget to add the icon for the second widget to thefirst homescreen; in response to detecting the second press gesture,determining whether the first homescreen has available space for placingthe icon for the second widget; and in response to determining that thefirst homescreen does have available space for placing the icon for thesecond widget, displaying the icon for the second widget on the firsthomescreen.
 15. A non-transitory computer-readable storage medium havinga program recorded thereon that, when executed by a processor, causes amobile terminal that has a first homescreen to add an icon in the mobileterminal, by performing the steps of: detecting a first press gesture onan icon for a first widget to add the icon for the first widget to thefirst homescreen, wherein a shortcut and a folder are displayed on thefirst homescreen; in response to detecting the first press gesture,determining whether the first homescreen has available space for placingthe icon for the first widget; and in response to determining that thefirst homescreen does not have available space for placing the icon forthe first widget, displaying the icon for the first widget on a secondhomescreen automatically created.
 16. The non-transitorycomputer-readable storage medium according to claim 15, wherein thesteps further include: determining remaining space of the firsthomescreen through a display grid parameter established by an operatingsystem of the mobile terminal and space occupied by application programicons on the first homescreen.
 17. The non-transitory computer-readablestorage medium according to claim 15, wherein: the mobile terminal has athird homescreen next to the first homescreen before detecting the firstpress gesture; the third homescreen does not have available space forplacing the icon for the first widget; and the second homescreen isautomatically created next to the third homescreen.
 18. Thenon-transitory computer-readable storage medium according to claim 17,wherein the steps further include: in response to detecting the firstpress gesture, determining whether the third homescreen has availablespace for placing the icon for the first widget; wherein the icon forthe first widget is displayed on the second homescreen in response todetermining that the first homescreen and the third homescreen do nothave available space for placing the icon for the first widget.
 19. Thenon-transitory computer-readable storage medium according to claim 18,wherein the steps further include: detecting a second press gesture onan icon for a second widget to add the icon for the second widget to thefirst homescreen; in response to detecting the second press gesture,determining whether the first homescreen has available space for placingthe icon for the second widget; in response to determining that thefirst homescreen does not have available space for placing the icon forthe second widget, determining whether the third homescreen hasavailable space for placing the icon for the second widget; and inresponse to determining that the third homescreen does have availablespace for placing the icon for the second widget, displaying the iconfor the second widget on the third homescreen.
 20. The non-transitorycomputer-readable storage medium according to claim 17, wherein thesteps further include: detecting a second press gesture on an icon for asecond widget to add the icon for the second widget to the firsthomescreen; and in response to determining that the first homescreendoes not have available space for placing the icon for the second widgetand that the third homescreen has available space for placing the iconfor the second widget, displaying the icon for the second widget on thethird homescreen.
 21. The non-transitory computer-readable storagemedium according to claim 15, wherein the steps further include:detecting a second press gesture on an icon for a second widget to addthe icon for the second widget to the first homescreen; in response todetecting the second press gesture, determining whether the firsthomescreen has available space for placing the icon for the secondwidget; and in response to determining that the first homescreen doeshave available space for placing the icon for the second widget,displaying the icon for the second widget on the first homescreen.